package chpt02;

import java.util.Scanner;

public class IfDemo02 {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		System.out.print("请输入成绩：");
		int score= input.nextInt();
		if(score >= 90){ //成绩>=90
		   System.out.println("优秀");
		}else if(score >= 80){ // 80<=成绩<90
		   System.out.println("良好");
		}else if(score >= 60){ //60<=成绩<80
		   System.out.println("中等");
		}else{  // 成绩<60
		   System.out.println("差");
		}
		input.close();
	}
}
